{% extends 'base.html' %}
{% block title %}
    <a class="navbar-brand" href="#"> 填写 {{ staff.username }} 的离职信息 </a>
{% endblock %}
{% block content %}

<div class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<div class="card">
					<form id="allInputsFormValidation" class="form-horizontal"  method="post" >
						<div class="content">
							<h4 class="title">填写 {{ staff.username }} 的离职信息</h4>


							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">离职日期<span style="color:red">*</span></label>
                                    <div class="col-sm-6">

                                        <input type="date" name="termdate" class="form-control datepicker" autocomplete="off" required>
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">离职类型<span style="color:red">*</span></label>
									<div class="col-sm-10" style="margin-top: 10px">
											<input type="radio" data-toggle="radio" name="dimission_type" value="主动辞职" checked="">主动辞职
											<input type="radio" data-toggle="radio" name="dimission_type" value="辞退">辞退
											<input type="radio" data-toggle="radio" name="dimission_type" value="退休">退休
											<input type="radio" data-toggle="radio" name="dimission_type" value="开除">开除
											<input type="radio" data-toggle="radio" name="dimission_type" value="试用期未通过">试用期未通过
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">离职去向</label>
                                    <div class="col-sm-6">

                                        <input type="text" name="leave_to" class="form-control datepicker" autocomplete="off" >
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">人才库</label>
									<div class="col-sm-10" style="margin-top: 10px">
										<input type="radio" data-toggle="radio" name="talent_pool" value="是" checked="">是
                                        <input type="radio" data-toggle="radio" name="talent_pool" value="否">否
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">备注</label>
                                    <div class="col-sm-6">

                                        <textarea cols="50" rows="8" name="remark" class="form-control datepicker" autocomplete="off" ></textarea>
                                    </div>
                                </div>
							</fieldset>

						</div>
						<div class="card-footer text-center">
							<input type="submit" name="submit" class="btn btn-info btn-fill" value="提交">
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{% endblock %}